<?php
use \Sy;
use \blog\libs\BHtml;
use \blog\libs\BMeta;
use \blog\libs\option;
if (!class_exists('Sy')) {
	exit;
}
?>
<!DOCTYPE html>
<html>
<head>
	<?=BHtml::meta(['name|viewport' => 'width=device-width, initial-scale=1'])?>
	<title><?php $article->title(); ?> - <?=option::get('sitename')?></title>
	<?php Sy::view('common/header', ['article' => $article]); ?>
	<?=BHtml::link()?>
</head>
<body>
	<?php Sy::view('common/navbar', ['tid' => $tid]) ?>
	<div class="row">
		<div class="col s9">
			<article class="card-panel">
				<h2><?php $article->title(); ?></h2>
				<p class="info">Published at <?php $article->date('Y-m-d H:i:s'); ?></p>
				<p class="info">Tags:<?=BMeta::tags($article->tags)?></p>
				<article class="article"><?php $article->body(['imgClass' => 'materialboxed', 'addNofollow' => TRUE]); ?></article>
			</article>
		</div>
		<?php Sy::view('common/sidebar'); ?>
	</div>
	<?php Sy::view('common/footer') ?>
</body>
</html>